package server;

public interface Servlet {
    /**
     * 初始化
     * @throws Exception
     */
    void init() throws Exception;

    /**
     * 销毁
     * @throws Exception
     */
    void destroy() throws Exception;

    /**
     * 请求方式的判断 get和post请求
     * @param request
     * @param response
     * @throws Exception
     */
    void service(Request request, Response response) throws Exception;
}
